package gtv.sic.control;


import gtv.sic.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;


public class MenuPrincipalActivity extends Activity {
	
	private Button artista;
	private Button evento;
	private Button logout;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menu_principal);
        
        artista = (Button) findViewById(R.id.buttonArtista);
        evento = (Button) findViewById(R.id.buttonEvento);
        logout = (Button) findViewById(R.id.buttonSair);
        
        artista.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(MenuPrincipalActivity.this, MenuArtistaActivity.class);
				
				startActivity(intent);
			}
		});
        
        evento.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(MenuPrincipalActivity.this, MenuEventoActivity.class);
				
				startActivity(intent);
			}
		});
        
        logout.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View v) {
				Intent intent = new Intent(MenuPrincipalActivity.this, SiCActivity.class);
				
				startActivity(intent);
			}
		});
        
    }
}